import { Material } from "three";
import { ControllerState } from "../..";

export default function onChange(state: ControllerState) {
    return (e: Material) => {
        state.onChange && state.onChange(e);
    }
}